// common/pagination-response.dto.ts
import { VideoGroup } from '../video-group/video-group.entity';

export class PaginationResponse<T> {
    // 分页信息
    pagination: {
        // 每页数量
        pageSize: number;
        // 当前页码
        currentPage: number;
        // 总记录数
        total: number;
    };
    // 数据列表
    list: T[];

    constructor(
        pageSize: number,
        currentPage: number,
        total: number,
        list: T[],
    ) {
        this.pagination = {
            pageSize,
            currentPage,
            total,
        };
        this.list = list;
    }
}